package com.xiaoxin.suma.utils;

import rx.Observable;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by ljm on 2017/4/27.
 */

public class RxUtil {

    public static <T> Observable.Transformer<T, T> rxSchedulerio_main() {    //compose简化线程
        return observable -> observable.subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread());
    }
}
